package com.security.springsecurity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("suser")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;

    private List<Role> roles;
}
